﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL.Concrete.Products
{
    public class CommonBAL
    {

        public List<DTOS.Products.UnitsDTO> GetMasterUnits()
        {
            try
            {
                return new DBLayer.Products().GetMasterUnits();
            }
            catch
            {
                throw;
            }
        }

        public List<DTOS.Products.MasterStones> GetMasterStones()
        {
            try
            {
                return new DBLayer.Products().GetMasterStones();
            }
            catch
            {
                throw;
            }
        }

        public List<DTOS.Products.CategoryDTO> GetCategories(string ItemType)
        {
            try
            {
                return new DBLayer.Products().GetCategories(ItemType);
            }
            catch
            {
                throw;
            }
        }

        public List<DTOS.Products.ItemTypes> GetItemTypes()
        {
            try
            {
                return new DBLayer.Products().GetItemTypes();
            }
            catch
            {
                throw;
            }
        }
    }
}
